# -*- coding: utf-8 -*-

import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4 import QtCore, QtGui

class dumpDialog(QDialog):
    
    tip_str=''
    
    def __init__(self,parent=None):
       pass
    def set_tip(self, v):
        self.tip_str = v
    def setUI(self,parent=None):
        super(dumpDialog,self).__init__(parent)
        self.resize(199, 55)
        w_label=QLabel(self.tip_str)
        self.b_checkbox=QCheckBox()
        ok_cancel_bt=QDialogButtonBox(QDialogButtonBox.Ok)
        ok_cancel_bt.button(QDialogButtonBox.Ok).setDefault(True)
        vlabel=QVBoxLayout()
        vlabel.addWidget(ok_cancel_bt)
        vlabel.addSpacing(55)
        layout=QGridLayout()
        layout.addWidget(w_label,0,0)
        layout.addLayout(vlabel,2,0,1,3)
        self.setLayout(layout)
        self.connect(ok_cancel_bt,SIGNAL("accepted()"),self,SLOT("accept()"))
        self.setWindowTitle(u"友情提示") 
